#include "../source/serve.hpp"

int main()
{
    Socket cli;
    bool ret = cli.CreateClient(8080, "127.0.0.1");
    if (ret == false)
        return -1;
    for(int i=0;i<5;i++)
    {
        std::string str = "hello world\n";
        cli.Send(str.c_str(), str.size());
        char buf[1024] = {0};
        cli.Recv(buf, 1023);
        DBG_LOG("%s", buf);
        sleep(1);
    }
    return 0;
}
